package com.noah.services;

import java.util.HashMap;

import com.noah.model.SimpleUser;

public class LoginServices {
	HashMap<String, String> SimpleUsers = new HashMap<String, String>();

	

	public boolean checkLogin(String user, String pwd) {
		boolean b = true;
		if (user.isEmpty() || pwd.isEmpty())
			b = false;
		return b;
	}

	public SimpleUser getUserDetails(String id) {
		SimpleUser su = new SimpleUser();
		su.setUserName(id);
		su.setPassword(SimpleUsers.get(id));
		return su;
	}
}
